const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = {
	configureWebpack: {
		output: {libraryTarget: 'umd'},
		externals: process.env.NODE_ENV === 'production' ? {'./siteinfo': '../siteinfo.js'} : {},
		plugins: [new CopyWebpackPlugin([{ from: __dirname + '/siteinfo.js' }])]
	}
}